<template>
  <view>
    <web-view :src="url"></web-view>
  </view>
</template>

<script setup>
const url = ref('');
onLoad((options) => {
  if (options.type === '1') {
    // 隐私协议
    url.value = 'https://iyimeng.com/user/privacy.html';
    uni.setNavigationBarTitle({
      title: '隐私政策'
    });
  } else if (options.type === '2') {
    // 用户协议
    url.value = 'https://iyimeng.com/user/user.html';
    uni.setNavigationBarTitle({
      title: '用户协议'
    });
  }
});
</script>

<style lang="scss" scoped></style>
